package cn.yunyichina.provider.hisiface.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import cn.yunyichina.provider.hisiface.service.AbstractService;
import cn.yunyichina.provider.iface.entity.common.ResCommon;
import cn.yunyichina.provider.iface.entity.hisiface.other.HospitalReportVo;
import cn.yunyichina.provider.iface.entity.hisiface.other.HospitalReportVoResponse;
import cn.yunyichina.provider.iface.entity.hisiface.other.QueryLogVo;
import cn.yunyichina.provider.iface.entity.hisiface.other.QueryLogVoResponse;
import cn.yunyichina.provider.iface.entity.hisiface.other.SmsNoticeVo;
import cn.yunyichina.provider.iface.entity.hisiface.other.SmsNoticeVoResponse;

/**
 * 其他服务接口
 * <p>
 * 日志查询 queryLog
 * 
 * @author zhou
 *
 */
@Service
public class HisifaceOtherServiceImpl extends AbstractService {

	/**
	 * 日志查询
	 * 
	 * @param financeVo
	 * @return
	 */
	public ResCommon<List<QueryLogVoResponse>> queryLog(QueryLogVo queryLogVo) {
		String methodCode = "queryLog";
    	String methodName = "日志查询";
    	
    	return doExecList(methodCode, methodName, queryLogVo, QueryLogVoResponse.class);
	}
	
	/**
	 * 获取出院记录
	 * 
	 * @param hospitalReportVo
	 * @return
	 */
	public ResCommon<HospitalReportVoResponse> getHospitalReport(HospitalReportVo hospitalReportVo) {
		String methodCode = "getHospitalReport";
    	String methodName = "查询医院数据";
    	
    	return doExec(methodCode, methodName, hospitalReportVo, HospitalReportVoResponse.class);
	}
	
	/**
	 * 精准推送
	 * 
	 * @param smsNoticeVo
	 * @return
	 */
	public ResCommon<List<SmsNoticeVoResponse>> getSmsNotice(SmsNoticeVo smsNoticeVo) {
		String methodCode = "getSmsNotice";
    	String methodName = "精准推送";
    	
    	return doExecList(methodCode, methodName, smsNoticeVo, SmsNoticeVoResponse.class);
	}
}
